Parameter must be an array or an object that implements Countable

106

//add a typecast array to the array being called
$count = count((array)$originalArray);
if (is_array($yourArray)) {
    //Your count()
}

Comments

Submit
0 Comments